@detailBarWidth: 360px;

:host { // 对宿主元素
  width: 100vw;
}

.main {
  background-color: white;
  height: 100vh;

  .content {
    height: 100%;

    .left {
      width: 100%;
      height: 100%;
      float: left;
      display: flex;
      flex-direction: column;

      .header {
        position: relative;
        background-color: #a9f080;
        height: 150px;
        padding: 0 10px;

        .title {
          position: absolute;
          bottom: 18px;
          font-size: 37px;
          color: white;
          font-weight: lighter;
          padding: 0 10px;
          cursor: default;
        }

        input {
          position: absolute;
          bottom: 18px;
          font-size: 37px;
          font-weight: lighter;
          border-width: 0;
          border-radius: 5px;
          background-color: #00000021;
          padding: 0 10px;
          width: 80%;
        }

        .options {
          position: absolute;
          line-height: normal;
          right: 35px;
          bottom: 25px;

          button {
            border: none;
            background: #69c439;
            cursor: pointer;
            padding: 5px 15px;

            i {
              color: white;
              font-size: 20px;
            }
          }

          .menu {
            background: white;
            position: absolute;
            width: 200px;
            right: -15px;
            top: 38px;
            z-index: 1;
            border-radius: 5px;
            padding: 5px 0;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);

            .menu-title {
              text-align: center;
              font-weight: bold;
              padding: 7px;
              border-bottom: 1px solid #f0f0f0;
              font-size: 15px;
            }

            ul {
              li {
                padding: 9px;
                color: rgba(0, 0, 0, 0.65);
                white-space: nowrap;
                cursor: pointer;
                font-size: 13px;

                &:hover {
                  background: #ecf6fd;
                }
              }
            }
          }
        }
      }

      .flex-container {
        position: relative;
        display: flex;
        flex-direction: column;
        flex: 1;
      }
    }

    .right {
      position: relative;
      float: right;
      width: @detailBarWidth;
      height: 100%;
      margin-right: -@detailBarWidth;
    }
  }
}
